﻿<%@ Page language="c#" Codebehind="DraftList.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.UnitiveDocument.DocumentFlow.DraftList" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-cn" />
<meta name="author" content="Herry" />
<meta name="Copyright" content="Copyright (c) 2009 himm.cn" />
<title>DraftList</title>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link rel="stylesheet" type="text/css" href="/css/other.css" media="screen" />
<link rel="stylesheet" type="text/css" href="/css/table.css" />
</head>
<body>
<form id="WebForm1" method="post" runat="server">
<div class="m">
    <div class="path"><span class="right"><asp:button id="cmdQuery" runat="server" Width="50px" Text="查询" CssClass="buttoncss"></asp:button><asp:button id="cmdNewDocument" runat="server" Width="54px" Text="撰稿" CssClass="buttoncss"></asp:button></span><a href="/SubModule/UnitiveDocument/Desktop.aspx">我的桌面</a> >> 文档流转</div>
    <div class="con">
    <div class="tabnav">
        <p class="tabnavhead"> 
        <span id="bar1" class="active1 tnc">
        <asp:linkbutton id="lbMyRead" runat="server" >我的批阅</asp:linkbutton>
        </span>
        <span id="bar2" class="active1 tnc">
        <asp:linkbutton id="lbMyRequisition" runat="server" >我的申请</asp:linkbutton>
        </span>
        <span id="bar3" class="active1 tnc">
        <asp:linkbutton id="lbMyApproved" runat="server" >已经批阅</asp:linkbutton>
        </span>
        <span id="bar4" class="active2 tnc">
        <asp:linkbutton id="lbDraftList" runat="server" >拟稿箱</asp:linkbutton>
        </span>
        <%if(bManageFlow==true){%>
        <span id="bar5" class="active1 tnc">
        <asp:linkbutton id="lbFlowManage" runat="server" >流程管理</asp:linkbutton>
        </span>
        <%}%>

        </p>
      </div>
		<asp:datagrid id="dgDraftList" runat="server" Width="100%"  PageSize="15" CellPadding="3" BorderWidth="1px" BorderStyle="None" BorderColor="#337FB2" BackColor="White" OnPageIndexChanged="DataGrid_PageChanged" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False">
    <SelectedItemStyle Font-Bold="True" ForeColor="#CCFF99" BackColor="#009999"></SelectedItemStyle>
    <AlternatingItemStyle  HorizontalAlign="Center" BackColor="#E8F4FF"></AlternatingItemStyle>
    <ItemStyle  HorizontalAlign="Center" ForeColor="#003399" BackColor="White"></ItemStyle>
    <HeaderStyle HorizontalAlign="Center" ForeColor="White" VerticalAlign="Middle" BackColor="#337FB2"></HeaderStyle>
    <FooterStyle ForeColor="#003399" BackColor="#99CCCC"></FooterStyle>
    <Columns>
        <asp:TemplateColumn HeaderText="ID">
            <HeaderStyle Width="2%"></HeaderStyle>
            <ItemTemplate>
                <asp:CheckBox id="Flow_ID" runat="server"></asp:CheckBox>
            </ItemTemplate>
        </asp:TemplateColumn>
        <asp:TemplateColumn HeaderText="文档标题">
            <HeaderStyle HorizontalAlign="Left"></HeaderStyle>
            <ItemStyle HorizontalAlign="Left"></ItemStyle>
            <ItemTemplate>
                <asp:HyperLink runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Title") %>' NavigateUrl='<%# GetDisplayDocumentUrl(DataBinder.Eval(Container, "DataItem.Doc_ID").ToString())%>'>
                </asp:HyperLink>
            </ItemTemplate>
        </asp:TemplateColumn>
        <asp:BoundColumn DataField="DocBuilder" HeaderText="拟稿人">
            <HeaderStyle Width="10%"></HeaderStyle>
        </asp:BoundColumn>
        <asp:HyperLinkColumn DataNavigateUrlField="FLOW_ID" DataNavigateUrlFormatString="DisplayFlow.aspx?FlowID={0}"
            DataTextField="FlowName" HeaderText="流程图例">
            <HeaderStyle HorizontalAlign="Center" Width="20%"></HeaderStyle>
            <ItemStyle  HorizontalAlign="Center"></ItemStyle>
        </asp:HyperLinkColumn>
        <asp:TemplateColumn HeaderText="当前步骤">
            <HeaderStyle Width="10%"></HeaderStyle>
            <ItemTemplate>
                <asp:HyperLink runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.StepName") %>' NavigateUrl='<%#GetDisplayStepMemberUrl(DataBinder.Eval(Container, "DataItem.Doc_ID").ToString()) %>'>
                </asp:HyperLink>
            </ItemTemplate>
        </asp:TemplateColumn>
        <asp:BoundColumn DataField="Short_Doc_Added_Date" HeaderText="拟稿时间">
            <HeaderStyle Width="10%"></HeaderStyle>
        </asp:BoundColumn>
        <asp:BoundColumn DataField="Status" HeaderText="状态">
            <HeaderStyle  HorizontalAlign="Center" Width="8%"></HeaderStyle>
            <ItemStyle  HorizontalAlign="Center"></ItemStyle>
        </asp:BoundColumn>
    </Columns>
    <PagerStyle NextPageText=""  HorizontalAlign="Right" ForeColor="#003399"
        BackColor="#E8F4FF" Mode="NumericPages"></PagerStyle>
</asp:datagrid>
    </div>
  </div>
</form>
</body>
</html>
